import { CardEditableParamsDefault, CardDataEditableParamsCommonDefault } from "@/views/card/js/data/cardDatas/card-datas-default.js";
import TooltipsData from "@/views/card/js/data/tooltipsData/tooltips-data.js";
const CARD_6 =  {
    desc: {
      ...CardEditableParamsDefault.InputNormal,
      label: '按钮名称',
      placeholder: '请填入按钮名称',
    },
    scheme: {
      // ...CardEditableParamsDefault.InputNormal,
      // label: '跳转链接',
      // placeholder: '请填入跳转链接',

      ...CardEditableParamsDefault.MixedInput,
      label: '跳转链接',
      placeholder: '请填入跳转链接',
      original_type: 'InputNormal',
      original_type_list: [
        {
          value: 'InputNormal',
          label: '链接',
        },
        {
          value: 'DropdownNormal',
          label: '弹层',
        },
      ],
      original_type_prop_list: {
        'DropdownNormal': {
          data_type: 'PANEL'
        },
        'InputNormal': {},
      },
      original_type_config_list: {
        'DropdownNormal': {
          prefix: 'http://iapib.hd.xxx.com/v1/fcardlist/getPanel?pageNum=',
          // suffix: '',
          encode: true,
          parent: {
            prefix: 'sinaweibo://pagealert?request_url=',
            // suffix: '',
            // encode: false,
          },
        },
        'InputNormal': {},
      },
    },
    show_type: {
      ...CardEditableParamsDefault.DropdownNormal,
      label: '显示样式',
      placeholder: '请选择',
      valLists: [
        {
          name: '默认颜色, 显示箭头',  // default
          value: '0',
        },
        {
          name: '绿色',
          value: '1',
        },
        {
          name: '红色',
          value: '2',
        },
        {
          name: '蓝色',
          value: '3',
        },
        {
          name: '高亮白色',
          value: '4',
        },
        {
          name: '橙黄色',
          value: '5',
        },
      ],
    },
    display_arrow: {
      ...CardEditableParamsDefault.SwitchNormal,
      label: '右侧箭头',
      bIsUpdateManual: true,
      boolReplace: {
        boolTrue: '1',
        boolFalse: '0',
      },

      param_effect_parent: {
        effect_parent_keys: ['show_type'],
        effect_type: ['SHOW_HIDE'],
        effect_parent_val: '0',
        effect_clear: {
          effect_clear_default_val: '0',  // default
        },
      },
    },
    buttons: {
      ...CardEditableParamsDefault.Lists,
      label: '按钮',
      limit: 1,
      param_params: {
        name: {
          ...CardEditableParamsDefault.InputNormal,
          label: '按钮名称',
          placeholder: '请填入按钮名称',
          tooltips: TooltipsData.others[2],
        },
        // type: {
        //   ...CardEditableParamsDefault.DropdownNormal,
        //   label: '按钮类型',
        //   placeholder: '请选择',
        //   valLists: [
        //     {
        //       name: '默认',  // 默认类型
        //       value: 'default',
        //     },
        //   ],
        // },
        params: {
          ...CardEditableParamsDefault.Obj,
          label: '其他参数',
          param_params: {
            action: {
              ...CardEditableParamsDefault.Action,
              label: '按钮事件',
              placeholder: '请填入按钮事件',
              tooltips: TooltipsData.others[1],
            },
          },
        },
      },
    },
    ...CardDataEditableParamsCommonDefault,
  };
export default CARD_6;